#!/bin/bash

read -t 3 -n 4 -p "请输入用户名: " username
read -n 6 -s -p "请输入密码: " password

echo

echo "用户名 = $username, 密码: $password"

cat > yum.repo << END
[kyo]
name=kyo
baseurl=http://3.3.3.1/centos1
        http://3.3.3.1/centos2
enabled=1
gpgcheck=0
END

cat > test << EOF
#!/bin/bash

echo hello world

EOF
